﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyWeb.ServiceBus.Model.Models
{
    /// <summary>
    /// 订阅服务
    /// </summary>
    [SysTable]
    [Table("ESB.SubServer")]
    public class SubServer:Root<long>
    {
        /// <summary>
        /// 应用Id
        /// </summary>
        public long AppId { get; set; }
        /// <summary>
        /// 服务Id
        /// </summary>
        public long ServerId { get; set; }
        /// <summary>
        /// 网关Id
        /// </summary>
        public long GatewayId { get; set; }
        /// <summary>
        /// 服务编码
        /// </summary>
        public string? ServerCode { get; set; }
        /// <summary>
        /// 服务版本
        /// </summary>
        public string? Version { get; set; }
        /// <summary>
        /// 订阅时间
        /// </summary>
        public DateTime SubTime { get; set; }
    }
}
